#include <iostream>

using namespace std;
class BaseClass
{
public:
    virtual ~BaseClass()
    {
        cout << "~BaseClass()" << endl;
    }
};
class DerivedClass : public BaseClass
{
public:
    ~DerivedClass()
    {
        cout << "~DerivedClass()" << endl;
    }
};

int main(int argc, char const *argv[])
{
    DerivedClass B1;
    return 0;
}
